//
//  SecondViewController.m
//  UI_09homework
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondViewController.h"
#import "ScrollView.h"



@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.view.backgroundColor = [UIColor yellowColor];
    
    [self creatPictures];
    
}


-(void)creatPictures{
    
    NSArray *picsssArray = @[[UIImage imageNamed:@"aisi.jpg"], [UIImage imageNamed:@"family.jpg"], [UIImage imageNamed:@"leili.jpg"], [UIImage imageNamed:@"lufei.jpg"], [UIImage imageNamed:@"qiaoba.jpg"], [UIImage imageNamed:@"suolong.jpg"]];
    
    
    ScrollView *scrolView = [[ScrollView alloc]initWithFrame:CGRectMake(0, 0, 300, 450)];
    scrolView.center = self.view.center;
    scrolView.picsArray = picsssArray;
//    NSLog(@"%@", scrolView.picsArray);
    [self.view addSubview:scrolView];
    [scrolView release];
    
    
}










- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
